package gameoflife;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;

import org.junit.Test;

public class GameOfLiveCellTest {

	@Test
	public void createLiveCell() throws Exception {
		GameOfLifeCell cell = GameOfLifeCell.live(0, 0);
		assertThat(cell.isLive(), is(true));
	}

	@Test
	public void createDeathCell() throws Exception {
		GameOfLifeCell cell = GameOfLifeCell.death(0, 0);
		assertThat(cell.isLive(), is(false));
	}

}
